export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

// 已有文章的ts数据类型
export interface Article {
  id?: number
  author?: number | string
  title: string
  cover_image: string
  category: number | string
  tags: number[]
  content: string
  heat?: number | string
  status?: number | string
  publish_time?: string
  update_time?: string
}

export type Records = Article[]

export interface ArticleResponseData extends ResponseData {
  data: Records
}
